package se.hiq.wineo.shared.data;

import java.io.Serializable;

public class WineDescriptor implements Serializable {
	
	private static final long serialVersionUID = 1L;

	// Private fields
	private Long primaryKey;
	private String name;
	private WineColor color;
	private Integer year;
	
	// Constructors
	public WineDescriptor() {
		this(null, null, null, null);
	}
	
	public WineDescriptor(Long primaryKey, String name, WineColor color, Integer year) {
		this.primaryKey = primaryKey;
		this.name = name;
		this.color = color;
		this.year = year;
	}

	// Methods
	public Long getPrimaryKey() {
		return primaryKey;
	}

	public void setPrimaryKey(Long primaryKey) {
		this.primaryKey = primaryKey;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public WineColor getColor() {
		return color;
	}

	public void setColor(WineColor color) {
		this.color = color;
	}

	public Integer getYear() {
		return year;
	}

	public void setYear(Integer year) {
		this.year = year;
	}
	
}
